CC = g++
CFLAGS = -g -I libpcap-1.1.1 -lpcap 

HEADERS = 
SOURCES = detector.cpp
OBJECTS = $(SOURCES:.cpp=.o)
TARGETS = detector

all: $(TARGETS)

detector: detector.cpp
	$(CC) $(CFLAGS) -o $@ $^

.PHONY: clean

clean:
	@rm -f $(TARGETS) $(OBJECTS)
